using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Nestaspx : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    private void Page_PreInit(Object sender,EventArgs e)
    {
        String masterPage = null;

        //get name of master page from web.config
        masterPage = ConfigurationSettings.AppSettings["runtimeMasterPage"];

        //set the master page to be used with this page
        Page.MasterPageFile = masterPage;
    }  //Page_PreInit

}
